package com.example.knowman.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.sql.Timestamp;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("\"ARCHKNOW\".\"knowMain\"")
public class knowMain extends Model<knowMain>{

    private static final long serialVersionUID = 1L;

    @TableField("\"knowId\"")
    private Integer knowId;

    @TableField("\"knowTitle\"")
    private String knowTitle;

    @TableField("\"knowContent\"")
    private String knowContent;

    @TableField("\"knowCateId\"")
    private Integer knowCateId;

    @TableField("\"staffCode\"")
    private String staffCode;

    @TableField("\"auditUser\"")
    private String auditUser;

    @TableField("\"knowState\"")
    private Integer knowState;

    @TableField("\"readCount\"")
    private Integer readCount;

    @TableField("\"praiseCount\"")
    private Integer praiseCount;

    @TableField("\"commentCount\"")
    private Integer commentCount;

    @TableField("\"createtime\"")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createtime;



}
